package com.pinxixi.auth.mapper;

import com.pinxixi.framework.domain.ucenter.UserExt;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface AuthMapper {

    @Select("select id,username,password,phone from tb_user where username=#{username} or phone=#{username}")
    UserExt findUserByUsername(String username);
}
